<template>
  <div class="jinrongshangchao">
    <img src="@/assets/shizijinrongrihttopcorner.png" style="
        height: 22px;
        position: absolute;
        right: 1.2rem;
        top: -2rem;
        z-index: 99;
      " />
    <div class="zbd-btn" @click="dialogVisible = true">
      <div class="txt">中标贷</div>
      <img src="@/assets/rightjiantoushouye.png" />
    </div>
    <div style="width: 100%; height: 100%">
      <!-- 金融商超弹框 -->
      <div style="position: relative; height: 100%">
        <div class="mainContent">
          <div class="maindivcontent" style="height: 100%">
            <div class="jinrongmaindiv">
              <div class="jinrongleft" style="width: 100%; margin: 0 auto">
                <div class="flexclass">
                  <img src="@/assets/jinrongone.png" class="imggrid" />
                  <div>
                    <p class="fontstyle fontstylelineheight" id="jrscrzcountjia" style="font-size: 2.9rem">
                      {{ jrscmesinfo.rzqysl || 0 }}
                    </p>
                    <div class="gridline"></div>
                    <p>认证企业数量(家)</p>
                  </div>
                </div>
                <div class="flexclass">
                  <img src="@/assets/jinrongtwo.png" class="imggrid" />
                  <div>
                    <p class="fontstyle fontstylelineheight" id="jrscrzljqfje" style="font-size: 2.9rem">
                      {{ jrscmesinfo.ljqfje || 0 }}
                    </p>
                    <div class="gridline"></div>
                    <p>累计签发金额(亿元)</p>
                  </div>
                </div>
                <div class="flexclass">
                  <img src="@/assets/leijirongzimoney.png" class="imggrid" />
                  <div>
                    <p class="fontstyle fontstylelineheight" id="jrscrzljrzje" style="font-size: 2.9rem">
                      {{ jrscmesinfo.ljrzje || 0 }}
                    </p>
                    <div class="gridline"></div>
                    <p>累计融资金额(亿元)</p>
                  </div>
                </div>
                <div class="flexclass">
                  <img src="@/assets/jinrongone.png" class="imggrid" />
                  <div>
                    <p class="fontstyle fontstylelineheight" id="jrscrzyqfhxqye" style="font-size: 2.9rem">
                      {{ jrscmesinfo.yqfhxqyslj || 0 }}
                    </p>
                    <div class="gridline"></div>
                    <p>已签发核心企业数量(家)</p>
                  </div>
                </div>
              </div>
              <div style="height: 70%">
                <div v-if="$store.state.userType == 'seller'" style="height: 100%; width: 99%; margin: 0 auto">
                  <!-- seller -->
                  <div id="beforelogin">
                    <div class="jinrongbottomleft" style="border-bottom: 0.05rem solid #192c55">
                      <div class="jinrongbottomleftsmall flexcolumn1">
                        <p class="jinrongbottomtitle">
                          <a href="https://scf.cnzgc.com/portal/product/credit" target="_blank">浙建e链</a>
                        </p>
                        <p class="jinrongbottomtext">
                          浙建e链是为满足产业链上游中小企业快速回收应收账款、提高资金周转效率而量身定制的产品，可提供拆分转让、持有到期收款、保理融资等在线金融服务。
                        </p>
                        <a href="https://scf.cnzgc.com/portal/product/credit" target="_blank">
                          <img src="@/assets/jinronglijibanli.png" style="width: 3.9rem; margin-top: 0.6rem" /></a>
                      </div>
                      <div class="jinrongbottomleftsmall flexrow">
                        <img src="@/assets/miandiyadanbao.png" style="width: 7.45rem" />
                        <img src="@/assets/zuikuaifnagkuan.png" style="width: 7.45rem" />
                        <img src="@/assets/kechaifenzhuanrnag.png" style="width: 7.45rem" />
                        <img src="@/assets/rongzijiageyouhui.png" style="width: 7.45rem" />
                      </div>
                    </div>
                    <div class="jinrongbottomleft">
                      <div class="jinrongbottomleftsmall flexcolumn1">
                        <p class="jinrongbottomtitle" style="margin-top: 2%">
                          <a href="https://scf.cnzgc.com/portal/product/guarantee" target="_blank">浙建保函</a>
                        </p>
                        <p class="jinrongbottomtext">
                          保函又称“担保函”，是金融机构应申请人的要求向受益人开出的、保证申请人或被保证人履行与受益人签定的合同项下义务的书面承诺。帮助企业在无授信情况下，开立保函，减少企业无偿保证金占用，优化企业资金配置。
                        </p>
                        <a href="https://scf.cnzgc.com/portal/product/guarantee" target="_blank">
                          <img src="@/assets/jinronglijibanli.png" style="width: 3.9rem; margin-top: 0.6rem" /></a>
                      </div>
                      <div class="jinrongbottomleftsmall flexrow">
                        <img src="@/assets/xianshangshenqingyewu.png" style="width: 7.45rem" />
                        <img src="@/assets/wozhanyong.png" style="width: 7.45rem" />
                        <img src="@/assets/dichegnbenwushouxin.png" style="width: 7.45rem" />
                        <img src="@/assets/shouxvjiandanbiajie.png" style="width: 7.45rem" />
                      </div>
                    </div>
                  </div>
                </div>
                <div v-else style="height: 100%; width: 99%; margin: 0 auto">
                  <!-- buyer -->
                  <div id="afterlogin">
                    <div class="flexrow afterloginnei">
                      <div style="
                          width: 70%;
                          height: 100%;
                          padding: 1%;
                          box-sizing: border-box;
                        ">
                        <div style="
                            height: 50%;
                            border-bottom: 0.05rem solid #192c55;
                          ">
                          <a href="https://scf.cnzgc.com/portal/product/credit" target="_blank">
                            <div style="display: flex; align-items: center">
                              <p class="jinrongbottomtitle">浙建e链</p>
                              <img src="@/assets/rightjiantou.png" style="
                                  width: 1.3rem;
                                  height: 1.3rem;
                                  margin-left: 2%;
                                " />
                            </div>
                          </a>
                          <div style="
                              display: flex;
                              height: calc(100% - 2rem);
                              justify-content: space-between;
                            ">
                            <div style="width: 100%" class="jinrongsamllrightcolumn">
                              <div id="zjelecharts" ref="zjelecharts" style="width: 100%; height: 100%"></div>
                            </div>
                          </div>
                        </div>
                        <div style="height: 50%">
                          <a href="https://scf.cnzgc.com/portal/product/guarantee" target="_blank">
                            <div style="
                                display: flex;
                                align-items: center;
                                margin-bottom: 0.6rem;
                                margin-top: 0.6rem;
                              ">
                              <p class="jinrongbottomtitle">浙建保函</p>
                              <img src="@/assets/rightjiantou.png" style="
                                  width: 1.3rem;
                                  height: 1.3rem;
                                  margin-left: 2%;
                                " />
                            </div>
                          </a>
                          <div style="
                              display: flex;
                              height: 70%;
                              justify-content: space-between;
                            ">
                            <div class="neisamllleftdiv">
                              <div class="flexcenter">
                                <p class="fontstyle" id="jrscljkhje" style="text-align: right">
                                  {{ jrscmesinfo.ljkhje || 0 }}
                                </p>
                                <div style="margin-left: 0.5rem">
                                  <p>累计开函总金额</p>
                                  <div class="gridline"></div>
                                  <p>亿元</p>
                                </div>
                              </div>
                              <div class="flexcenter">
                                <p class="fontstyle" id="jrscljkhzbs" style="text-align: right">
                                  {{ jrscmesinfo.ljkhbs || 0 }}
                                </p>
                                <div style="margin-left: 0.5rem">
                                  <p>累计开函总笔数</p>
                                  <div class="gridline"></div>
                                  <p>笔</p>
                                </div>
                              </div>
                            </div>
                            <div style="
                                display: flex;
                                flex: 1;
                                justify-content: space-around;
                              " class="jinrongsamllrightcolumn">
                              <div class="radiogroupclass" style="width: 17%; display: flex">
                                <el-radio-group v-model="radiovalue">
                                  <el-radio label="1">开函金额</el-radio>
                                  <el-radio label="2">开函笔数</el-radio>
                                  <el-radio label="3">开函费用</el-radio>
                                </el-radio-group>
                              </div>
                              <!-- <div class="layui-form" style="margin-left: 4%">
                                <div class="layui-form-item">
                                  <el-radio-group v-model="radio">
                                    <el-radio :label="3">开函金额</el-radio>
                                    <el-radio :label="6">开函笔数</el-radio>
                                    <el-radio :label="9">开函费用</el-radio>
                                  </el-radio-group> 
                                </div>
                              </div> -->
                              <div style="width: 81%" class="zjbhbigdiv">
                                <div id="zjbhecharts" ref="zjbhecharts" style="width: 100%; height: 100%"></div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="jrrigthtbottom">
                        <div ref="zfrzzbechart" id="zfrzzbechart"></div>
                        <p class="jrrightbottomtext">资方融资占比</p>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <el-dialog title="中标贷" :visible.sync="dialogVisible" width="86%" custom-class="zbd-dg" append-to-body>
      <div class="zbd">
        <div class="product">
          <div class="product-info">
            浙建招采平台金融服务产品介绍 <br>
            为解决浙建集团众多小微供应商合同签订后备货资金紧张的情况，为解决小微企业融资难、融资贵的局面，为更好的服务浙建招采平台会员供应商，提高服务能力，特推出会员专属金融服务产品。 <br>
            合同贷： <br>
            合同贷是一款用户凭项目采购招标的中标通知书进行融资贷款的产品。用户在收到中标通知书后即可选择银行产品进行申请，申请后由银行进行尽调审批，最终进行授信放款。 <br>
            产品特征： <br>
            1.手续简单2.额度高3.费率低4.无需抵押纯信用 <br>
            产品优势： <br>
            1.不占用浙建集团核心企业授信 <br>
            2.不纳入集团整体负债 <br>
            3.无需集团核心企业确权 <br>
            4.无需回款保证 <br>
          </div>
          <img src="@/assets/u2064.svg" />
        </div>
        <div class="zbd-list">
          <div class="list-item" @click="goTo(1)">
            <div class="img-wrapper"><img
                src="https://zcy-gov-open-doc.oss-cn-north-2-gov-1.aliyuncs.com/1089PT/null/10006343987/202111/8315f472-076a-45a7-b003-6dc505238c96"
                class="list-img"></div>
            <p class="content-name po-tooltip" aria-describedby="po-tooltip-3997" tabindex="0">
              中标贷
            </p>
            <div class="content-data">
              <div class="display-inline">
                <div class="list-rate">
                  <div>
                    <p class="highlights"><span>
                        4
                        <span class="font-12" style="color: rgb(236, 54, 70); margin-left: -3px;">%</span></span>
                      <!----> <!---->
                    </p> <span class="font12">
                      最低年利率
                    </span>
                  </div>
                </div>
              </div>
              <div class="display-inline">
                <div class="list-quota">
                  <p class="highlights"><span>
                      500
                    </span> <span class="font-12" style="color: rgb(236, 54, 70); margin-left: -3px;">万</span></p> <span
                    class="font12">
                    最高贷款额度
                  </span>
                </div> <!---->
              </div>
            </div>
            <ul class="desc">
              <li class="po-tooltip" aria-describedby="po-tooltip-3008" tabindex="0"><span class="dot">·</span> <span
                  class="font-14">一纸浙建合同也可抵万金，正合你益！</span></li>
              <li class="po-tooltip" aria-describedby="po-tooltip-4354" tabindex="0"><span class="dot">·</span> <span
                  class="font-14"
                  title="为中标供应商量身定制的，真正全线上化、纯信用、可循环使用的政府采购合同贷款">为中标供应商量身定制的，真正全线上化、纯信用、可循环使用的政府采购合同贷款</span></li>
            </ul>
            <div class="btn-wrapper"><button type="button"
                class="po-button btn pointer po-button--primary"><!----><!----><span>
                  立即申请
                </span></button> <span class="font-14 display-inline mt-4 pointer mr-16 produce-detail">
                产品详情<i class="po-icon-arrow-right"></i></span></div> <!----> <!---->
          </div>
          <div class="list-item" @click="goTo(2)">
            <div class="img-wrapper"><img src="@/assets/wsyh.png" class="list-img"></div>
            <p class="content-name po-tooltip" aria-describedby="po-tooltip-3997" tabindex="0">
              中标贷
            </p>
            <div class="content-data">
              <div class="display-inline">
                <div class="list-rate">
                  <div>
                    <p class="highlights"><span>
                        5
                        <span class="font-12" style="color: rgb(236, 54, 70); margin-left: -3px;">%</span></span>
                      <!----> <!---->
                    </p> <span class="font12">
                      最低年利率
                    </span>
                  </div>
                </div>
              </div>
              <div class="display-inline">
                <div class="list-quota">
                  <p class="highlights"><span>
                      300
                    </span> <span class="font-12" style="color: rgb(236, 54, 70); margin-left: -3px;">万</span></p> <span
                    class="font12">
                    最高贷款额度
                  </span>
                </div> <!---->
              </div>
            </div>
            <ul class="desc">
              <li class="po-tooltip2" aria-describedby="po-tooltip-3008" tabindex="0"><span class="dot">·</span> <span
                  class="font-14"
                  title="中标贷是网商银行为小微企业基于中标项目情况，缓解供应商资金压力，解决供应商资金周转问题提供的一款信贷产品。">中标贷是网商银行为小微企业基于中标项目情况，缓解供应商资金压力，解决供应商资金周转问题提供的一款信贷产品。</span>
              </li>
            </ul>
            <div class="btn-wrapper"><button type="button"
                class="po-button btn pointer po-button--primary"><!----><!----><span>
                  立即申请
                </span></button> <span class="font-14 display-inline mt-4 pointer mr-16 produce-detail">
                产品详情<i class="po-icon-arrow-right"></i></span></div> <!----> <!---->
          </div>
          <div class="dhz" style="height: 321px; display: flex; justify-content: center;align-items: center;">
            <div>待合作</div>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
      </span>
    </el-dialog>

  </div>
</template>

<script>
import APIS from "@/api/index";
import { Message } from "element-ui";
import * as echarts from "echarts";
export default {
  props: {},
  data() {
    return {
      dialogVisible: false,

      radiovalue: "1",
      jrscmesinfo: {
        rzqysl: 0,
        ljqfje: 0,
        ljrzje: 0,
        yqfhxqyslj: 0,
        ljkhje: 0,
        ljkhbs: 0,
      },
      jrscbharr: [[], [], []],
    };
  },
  watch: {
    radiovalue(newVal, oldVal) {
      var myChart = echarts.init(this.$refs["zjbhecharts"]);
      if (newVal == "1") {
        myChart.setOption({
          tooltip: {
            trigger: "axis",
            confine: true,
            formatter(params) {
              for (let x in params) {
                return (
                  params[x].marker +
                  params[x].name +
                  "月:    " +
                  params[x].data +
                  "万元"
                );
              }
            },
          },
          series: [
            {
              data: this.jrscbharr[0],
            },
          ],
        });
      } else if (newVal == "2") {
        myChart.setOption({
          tooltip: {
            trigger: "axis",
            confine: true,
            formatter(params) {
              for (let x in params) {
                return (
                  params[x].marker +
                  params[x].name +
                  "月:    " +
                  params[x].data +
                  "笔"
                );
              }
            },
          },
          series: [
            {
              data: this.jrscbharr[1],
            },
          ],
        });
      } else if (newVal == "3") {
        myChart.setOption({
          tooltip: {
            trigger: "axis",
            confine: true,
            formatter(params) {
              for (let x in params) {
                return (
                  params[x].marker +
                  params[x].name +
                  "月:    " +
                  params[x].data +
                  "元"
                );
              }
            },
          },
          series: [
            {
              data: this.jrscbharr[2],
            },
          ],
        });
      }
    },
  },
  computed: {},
  components: {},
  mounted() {
    this.getjrscmes();
    this.getgetCreditList();
    this.getgetGuaranteeList();
    this.getgetFianceList();
  },
  methods: {
    goTo(e) {
      this.$router.push(`/productDetail?id=${e}`)
    },
    returnFloat(num) {
      num = (parseInt(num * 100) / 100).toFixed(2);

      // num = num.toString(); // 转成字符串类型  如能确定类型 这步可省去
      // if (num.indexOf(".") !== -1) {
      //   let [integerPart, decimalPart] = num.split(".");

      //   if (decimalPart.length > 2) {
      //     decimalPart = decimalPart.substring(0, 2);
      //   } else if (decimalPart.length === 1) {
      //     decimalPart += "0";
      //   }

      //   num = `${integerPart}.${decimalPart}`;
      // } else {
      //   num += ".00";
      // }

      return num;
    },
    getgetFianceList() {
      let zfrzzb = [];

      APIS.Jrsc.getFianceList()
        .then((res) => {
          res.data["资方list"].map((item) => {
            zfrzzb.push({
              name: item.fianceName,
              value: Math.floor(item.amount / 1000000) / 100,
            });
          });
          this.columnarzfrzzbecharts(zfrzzb);
        })
        .catch((err) => {
          console.log(err);
        });
    },

    getjrscmes() {
      APIS.Jrsc.getNumAndAmount()
        .then((res) => {
          res.data.map((item) => {
            if (item.indName == "认证企业数量（家）") {
              this.jrscmesinfo.rzqysl = item.indValue;
            }
            if (item.indName == "累计签发金额（元）") {
              // this.jrscmesinfo.ljqfje = (item.indValue / 100000000).toFixed(2);
              this.jrscmesinfo.ljqfje = this.returnFloat(
                item.indValue / 100000000
              );
            }

            if (item.indName == "累计融资金额（元）") {
              // this.jrscmesinfo.ljrzje = (item.indValue / 100000000).toFixed(2);
              this.jrscmesinfo.ljrzje = this.returnFloat(
                item.indValue / 100000000
              );
            }

            if (item.indName == "已签发核心企业数量（家）") {
              this.jrscmesinfo.yqfhxqyslj = item.indValue;
            }
          });
        })
        .catch((err) => {
          console.log(err);
        });

      APIS.Jrsc.totalGuaranteeAmountAndNum()
        .then((res) => {
          res.data.map((item) => {
            if (item.indName == "累计开函金额（元）") {
              // this.jrscmesinfo.ljkhje = (item.indValue / 100000000).toFixed(2);
              this.jrscmesinfo.ljkhje = this.returnFloat(
                item.indValue / 100000000
              );
            }
            if (item.indName == "累计开函笔数（元）") {
              this.jrscmesinfo.ljkhbs = item.indValue;
            }
          });
        })
        .catch((err) => {
          console.log(err);
        });
    },
    getgetCreditList() {
      let xdata = [];
      let yarr1 = [];
      let yarr2 = [];
      let yarr3 = [];

      APIS.Jrsc.getCreditList()
        .then((res) => {
          res.data["e链业务list"].map((item) => {
            xdata.push(item.date);
            // yarr1.push((item.issueAmount / 10000).toFixed(2));
            // yarr2.push((item.cashingAmount / 10000).toFixed(2));
            // yarr3.push((item.financeAmount / 10000).toFixed(2));
            yarr1.push(this.returnFloat(item.issueAmount / 10000));
            yarr2.push(this.returnFloat(item.cashingAmount / 10000));
            yarr3.push(this.returnFloat(item.financeAmount / 10000));
          });
          this.columnarloginecharts(xdata, yarr1, yarr2, yarr3);
        })
        .catch((err) => {
          console.log(err);
        });
    },
    columnarzfrzzbecharts(data) {
      // var chartDom = document.getElementById(el);
      var myChart = echarts.init(this.$refs["zfrzzbechart"]);
      var option;
      option = {
        tooltip: {
          trigger: "item",
          formatter: function (params) {
            return `${params.marker}  ${params.name}:${params.value}亿元`;
          },
        },
        series: [
          {
            type: "pie",
            radius: ["15%", "8%"],
            hoverAnimation: false,
            z: 999,
            labelLine: {
              normal: {
                show: false,
                length: 30,
                length2: 55,
              },
            },
            data: [
              {
                name: "",
                value: 0,
                itemStyle: {
                  normal: {
                    color: "#00d8fe",
                  },
                },
                tooltip: {
                  show: false,
                },
              },
            ],
          },
          {
            name: "资方融资占比",
            type: "pie",
            radius: ["15%", "58%"],
            center: ["50%", "50%"],
            // roseType: 'area',
            itemStyle: {
              normal: {
                color: function (colors) {
                  var colorList = [
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                  ];
                  return colorList[colors.dataIndex];
                },
              },
            },
            labelLine: {
              normal: {
                show: true,
                length: 10,
                length2: 25,
                lineStyle: {
                  type: "dashed",
                },
              },
            },
            label: {
              normal: {
                textStyle: {
                  color: "#192C55", // 改变标示文字的颜色
                },
              },
            },

            data: data,
            startAngle: -10, //起始角度
          },
        ],
      };
      option && myChart.setOption(option);
      window.addEventListener("resize", function () {
        myChart.resize();
      });
    },
    getgetGuaranteeList() {
      let xzjbhdata = [];
      let yzjbharr1 = [];

      APIS.Jrsc.getGuaranteeList()
        .then((res) => {
          res.data["保函业务list"].map((item) => {
            xzjbhdata.push(item.date);
            // yzjbharr1.push((item.guaranteeAmount / 10000).toFixed(2));
            // this.jrscbharr[0].push((item.guaranteeAmount / 10000).toFixed(2));
            yzjbharr1.push(this.returnFloat(item.guaranteeAmount / 10000));
            this.jrscbharr[0].push(
              this.returnFloat(item.guaranteeAmount / 10000)
            );

            this.jrscbharr[1].push(item.guaranteeCount);
            this.jrscbharr[2].push(item.guaranteeFee);
          });
          this.columnarloginecharts2(xzjbhdata, yzjbharr1);
        })
        .catch((err) => {
          console.log(err);
        });
    },
    columnarloginecharts(xdata, arr1, arr2, arr3) {
      var myChart = echarts.init(this.$refs["zjelecharts"]);
      var option;
      option = {
        tooltip: {
          trigger: "axis",
        },
        grid: {
          top: "2px",
          left: "2%",
          right: "12px",
          bottom: "1%",
          containLabel: true,
        },
        tooltip: {
          trigger: "axis",
          confine: true,
          formatter:
            (params) => {
              var text = `${params[0].name} <br/>`;
              params.forEach((item) => {
                if (item.seriesName == "签发金额") {
                  text =
                    text +
                    `<span style="background-color: rgba(25, 44, 85, 1);display: inline-block; width: 8px;height: 8px; border-radius: 50%;margin-right: 4px;line-height: 12px"></span>
                  ${item.seriesName}&nbsp;&nbsp;&nbsp;${item.data}万元<br />`;
                } else if (item.seriesName == "融资金额") {
                  text =
                    text +
                    `<span style="background-color: rgba(0, 116, 244, 1);display: inline-block; width: 8px;height: 8px; border-radius: 50%;margin-right: 4px;line-height: 12px"></span>
                  ${item.seriesName}&nbsp;&nbsp;&nbsp;${item.data}万元<br />`;
                } else if (item.seriesName == "兑付金额") {
                  text =
                    text + ` <span style="background-color: rgba(254, 193, 70, 1);display: inline-block; width: 8px;height: 8px; border-radius: 50%;margin-right: 4px;line-height: 12px"></span>
                ${item.seriesName}&nbsp;&nbsp;&nbsp;${item.data}万元<br />`;
                }
              });
              return text;
            },
        },
        legend: {
          x: "-12px",
          y: "12px",
          orient: "vertical",
          itemWidth: 15,
          itemHeight: 5,
          textStyle: {
            fontSize: 12,
            fontFamily: "SBS",
          },
        },
        xAxis: {
          type: "category",
          data: xdata,
          axisTick: {
            alignWithLabel: true,
          },
          axisLabel: {
            //
            // interval: 0,
            // rotate: 30, //角度顺时针计算的
            // 更改x轴文字颜色的配置
            textStyle: {
              color: "#333333", //处理x轴的文字颜色【粉色】
            },
          },
          axisLine: {
            lineStyle: {
              color: "#edf1f9",
              width: 1, //x轴线的宽度
            },
          },
        },
        yAxis: {
          type: "value",
          show: false, // 是否显示坐标轴中的y轴
        },
        series: [
          {
            name: "签发金额",
            data: arr1,
            type: "bar",
            barWidth: "10px",
            itemStyle: {
              color: "rgba(25, 44, 85, 1)",
            },
          },
          {
            name: "融资金额",
            data: arr2,
            type: "bar",
            barWidth: "10px",
            itemStyle: {
              color: "rgba(0, 116, 244, 1)",
            },
          },
          {
            name: "兑付金额",
            data: arr3,
            type: "bar",
            barWidth: "10px",
            itemStyle: {
              color: "rgba(254, 193, 70, 1)",
            },
          },
        ],
      };

      option && myChart.setOption(option);
      window.addEventListener("resize", function () {
        myChart.resize();
      });
    },
    columnarloginecharts2(xdata, arr1) {
      var myChart = echarts.init(this.$refs["zjbhecharts"]);
      var option;
      option = {
        grid: {
          top: "2%",
          left: "5%",
          right: "1%",
          bottom: "1%",
          containLabel: true,
        },
        tooltip: {
          trigger: "axis",
          confine: true,
          formatter(params) {
            for (let x in params) {
              return (
                params[x].marker +
                params[x].name +
                "月:    " +
                params[x].data +
                "万元"
              );
            }
          },
        },
        xAxis: {
          type: "category",
          data: xdata,
          axisTick: {
            alignWithLabel: true,
          },
          axisLine: {
            lineStyle: {
              color: "#cfddf7",
              width: 1, //x轴线的宽度
            },
          },
          axisLabel: {
            interval: 0,
            rotate: 45, //角度顺时针计算的
            // 更改x轴文字颜色的配置
            textStyle: {
              color: "#333333", //处理x轴的文字颜色【粉色】
            },
          },
        },
        yAxis: [
          {
            type: "value",
            nameGap: 30, // 表现为上下位置
            nameTextStyle: {
              padding: [0, 0, 0, -30],
              color: "#000",
              fontFamily: "Alibaba PuHuiTi",
              fontSize: 14,
              fontWeight: 600,
            },
            splitLine: {
              show: false,
              lineStyle: {
                color: "#eeeeee",
              },
            },
            axisTick: {
              show: false,
            },
            axisLine: {
              show: false,
            },
            axisLabel: {
              show: false,
              textStyle: {
                color: "#393939",
              },
            },
          },
          {
            type: "value",
            nameTextStyle: {
              color: "#393939",
              padding: [0, 0, 0, 40], // 四个数字分别为上右下左与原位置距离
            },
            nameGap: 30, // 表现为上下位置
            position: "right",
            splitLine: {
              show: false,
            },
            axisTick: {
              show: false,
            },
            axisLine: {
              show: false,
            },
            axisLabel: {
              show: false,
              textStyle: {
                color: "#393939",
              },
            },
          },
        ],
        series: [
          {
            name: "累计采购金额",
            type: "bar",
            barWidth: 10,
            itemStyle: {
              normal: {
                color: "#182c56",
              },
            },
            data: arr1,
          },
        ],
      };

      option && myChart.setOption(option);
      window.addEventListener("resize", function () {
        myChart.resize();
      });
    },
  },
};
</script>
// 这种引入确保样式只在该组件生效
<style src="@/assets/css/public.css" scoped></style>
//
<style lang="scss" scopde>
.el-dialog__body {
  overflow: visible !important;
}

::v-deep .el-dialog__body {
  overflow: visible !important;
}

.zbd {
  &-btn {
    display: flex;
    align-items: center;
    position: absolute;
    left: 120px;
    top: -33px;
    cursor: pointer;

    .txt {
      margin-right: 10px;
      font-size: 1rem;
      color: #182c56;
      line-height: 24px;
    }

    img {
      width: 18px;
    }
  }

  .product {
    display: flex;
    justify-content: space-between;

    &-info {
      width: 57%;
      padding: 10px 1rem;
      border: 1px solid #182c56;
      border-radius: 0.6rem;
      position: relative;
      padding-top: 35px;
      font-size: 17px;
      color: #182B53;
      line-height: 1.2;

      &::before {
        content: '产品介绍';
        position: absolute;
        left: 1rem;
        top: -25px;
        line-height: 50px;
        font-size: 28px;
        text-align: center;
        width: 150px;
        border: 1px solid #182c56;
        background: #eef1f9;
      }
    }

    img {
      width: 37%;
      object-fit: fill;
    }
  }

  .font-12 {
    font-size: 12px;
  }

  &-list {
    display: flex;
    justify-content: space-between;

    .dhz {
      width: 38%;
      border: 1px solid rgba(24, 43, 83, 1);
      border-radius: 1rem;
      margin-top: 30px;
      font-size: 38px;
      color: #182B53;
    }

    .list-item {
      cursor: pointer;
      width: 29%;
      display: inline-block;
      max-height: 358px;
      background-color: #fff;
      padding: 16px;
      margin-top: 30px;
      -webkit-box-shadow: 0 5px 20px rgba(205, 208, 223, .4);
      box-shadow: 0 5px 20px rgba(205, 208, 223, .4);
      position: relative;
      box-sizing: border-box;
    }

    .list-item:not(.list-item:nth-child(3n)) {
      margin-right: 30px
    }

    .list-item:nth-of-type(n+6) {
      margin-top: 30px
    }

    .list-item .list-img {
      height: 40px;
      display: block
    }

    .list-item .content-name {
      font-weight: 500;
      color: #333;
      font-size: 20px;
      margin: 8px 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .list-item .content-data {
      height: 100px;
      background: #fafafa;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      width: 100%
    }

    .list-item .content-data>div {
      width: 50%;
      text-align: center;
      margin: auto;
      vertical-align: middle
    }

    .list-item .content-data .list-rate .list-quota {
      display: inline-block;
      text-align: left
    }

    .list-item .content-data .highlights {
      font-weight: 600;
      color: #ec3646;
      font-size: 22px
    }

    .list-item .desc {
      color: #999;
      margin-top: 8px;
      margin-bottom: 5px;
      line-height: 26px;
      height: 60px
    }

    .list-item .desc .po-tooltip {
      position: relative;
      padding-left: 15px;
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap
    }

    .list-item .desc .po-tooltip2 {
      position: relative;
      padding-left: 15px;
      font-size: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .list-item .desc .dot {
      position: absolute;
      left: 0;
      font-size: 24px
    }

    .list-item .btn-wrapper {
      display: flex;
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      justify-content: space-between;
      -webkit-box-pack: justify;
      -ms-flex-pack: justify;
      -webkit-justify-content: space-between;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center
    }

    .list-item .btn-wrapper .btn {
      width: 200px;
      height: 40px;
      line-height: 40px;
      padding: 0 32px !important;
      background: #1a79ff;
      border: none;
      text-align: center;
      color: #fff
    }

    .list-item .btn-wrapper .btn-disable {
      width: 200px;
      height: 40px;
      line-height: 40px;
      color: #fff;
      cursor: not-allowed;
      background-image: none;
      background-color: #bad7ff;
      border-color: #bad7ff;
      text-align: center
    }

    .list-item .btn-wrapper .produce-detail {
      width: 106px;
      text-align: center;
      color: #1a79ff;
    }

    .po-icon-arrow-right:before {
      font-family: element-icons !important;
      speak: none;
      font-style: normal;
      font-weight: 400;
      font-variant: normal;
      text-transform: none;
      content: "\e6e0";
    }

    .list-item .tag {
      position: absolute;
      top: 8px;
      right: 2px;
      display: flex;
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      -ms-flex-line-pack: center;
      align-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center
    }

    .list-item .tag-content {
      line-height: 12px;
      font-size: 12px;
      background: #dd9d56;
      color: #fff;
      padding: 4px 0 4px 4px
    }

    .list-item .guidance {
      position: absolute;
      right: 4px;
      top: 28px
    }

    .list-item .triangle {
      width: 0;
      height: 0;
      border-top: 10px solid transparent;
      border-right: 15px solid #fff;
      border-bottom: 10px solid transparent;
      margin-right: -3px
    }
  }
}

/// 
.el-dialog {
  width: 85%;
  margin: 0 auto;
  margin-top: 3% !important;
  display: flex;
  flex-direction: column;
  background-image: url("~@/assets/bottombg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: rgb(0, 38, 141, 0) !important;
  border: none;
  box-shadow: none;
  padding: 0.5% 1.2%;
  box-sizing: border-box;
  font-family: JCYT;
}

///
.jinrongshangchao {
  position: relative;
  width: 98%;
  height: 95%;
  font-size: 1rem;
  margin: 0 auto;

  .el-radio-group {
    display: flex;
    flex-direction: column;

    .el-radio {
      margin-top: 0.5rem;
    }
  }
}
</style>
<style lang="scss">
.radiogroupclass {
  .el-radio__label {
    font-size: 1rem;
  }

  .el-radio__inner {
    width: 1rem;
    height: 1rem;
  }
}
</style>
